package structural.adapter;

public class CompositeAdapter implements MyInterface{

    private OuterInterface adaptee;
    public CompositeAdapter(OuterInterface _outer){
        this.adaptee = _outer;
    }
    @Override
    public void doSomething() {
        System.out.println("开始聚合方式适配外部接口");
        adaptee.doSomethingA();
        adaptee.doSomethingB();
    }
}
